from django.urls import path
from OnlineShop.views import *
from django.contrib.auth.views import LoginView, LogoutView

urlpatterns = [
    path('', hello),
    path('admin/', admin.site.urls),
    path('buy/<int:good_id>/', buy_view),
    path('change_info/', change_info),
    path('comment/<int:order_id>/', comment_view),
    path('delete_order/<int:order_id>/', delete_order_view),
    path('good/<int:good_id>/', good_view),
    path('good_list/', good_list),
    path('sign_up/', sign_up),
    path('sign_in/', LoginView.as_view(template_name="sign_in.html")),
    path('sign_out/', LogoutView.as_view()),
    path('search/', search_view),
    path('user_center/', user_center),
    path('random/', random_get),
]
